package cn.dinghu.pro.common;

/**
 * @author 熙宝
 * @create 2025-05-21-11:37
 * 枚举类
 */
public enum HttpEnum {
    OK_200(200,"请求成功！"),

    FAIL_200(-200,"请求失败！"),

    /**
     * 服务内部错误
     */
    ERROR_500(500,"服务内部错误！"),

    FAIL_502(502,"请求失败！"),

    /**
     * 非法参数
     */
    ERROR_600(600,"非法参数"),

    /**
     * 404
     */
    NOTFOUND_404(404,"请求资源不存在！"),

    /**
     * 操作成功
     */
    HADNLE_201(201,"操作成功！"),

    /**
     * 操作失败
     */
    HANDLE_500(500,"操作失败！");


    private int code;
    private String desc;

    HttpEnum(int code, String desc) {
        this.code= code;
        this.desc=desc;
    }

    public int code() {
        return code;
    }

    public String desc() {
        return desc;
    }

}
